XML Traffic Reports

XML Traffic Reports provide the easiest way to build various reports of the traffic counters for the fixed time periods. TrafMeter can produce two groups of XML Traffic Reports simultaneously. For example, the first group can create daily traffic reports and the second group can create monthly traffic reports. A type of the report for the group (daily or monthly) depends on the Filename template. If the Filename template contains a daily identifier (%d), it will create the daily traffic reports. The Filename template for the monthly traffic reports must contain a monthly identifier (%m) and must not contain the daily identifier. For example, the Filename template:

Why XML ?

XML is a standard language used to structure and describe data that can be understood by different applications. The power of XML is its ability to separate the user interface from the data.

How does XML Traffic Reports work in TrafMeter ?

  1. A Filename of XML report is derived from the Filename template and from the current time. Assume, if the Filename template is "c:\Traffic\%Y-%m-%d.xml" and the current date is November 24, 2002, then the Filename of XML report will be "c:\Traffic\2002-11-24.xml"
  2. Traffic counters from the file "c:\traffic\2002-11-24.xml" are loaded in a memory.
  3. Unsaved traffic counters (i.e. new traffic counters after the last successful update of the report) are added to the traffic counters stored in the memory.
  4. The traffic counters are flushed in the file "c:\traffic\2002-11-24.xml" from the memory

By default, the traffic reports are updated after the second refresh period, however the frequency of updating can be changed by editing manually the filterset file (the node ).